-- GENERATED SPELL FOR [Dune Smasher] --


function spell0_5469(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(9791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5469', 20338, 1)
end

function Sorts_5469(pUnit, Event)
local choix_sorts_5469 = math.random(0, 0)
if choix_sorts_5469 == 0 then
pUnit:RegisterEvent('spell0_5469', 1, 1)
end
end

function mob5469_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5469', math.random(1500, 3000), 1)
end

function mob5469_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5469_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5469_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5469, 1, 'mob5469_Action')
RegisterUnitEvent(5469, 2, 'mob5469_Leave')
RegisterUnitEvent(5469, 3, 'mob5469_Kill')
RegisterUnitEvent(5469, 4, 'mob5469_Die')
